package com.example.abstractfactory;

/**
 * @version 1.0.0
 * @className: DefaultFactory
 * @description: 具体工厂类，其中Food,Vehicle，Weapon是抽象类，
 * @author: rosszhang
 * @date: 2022/5/13 11:38
 */
public class DefaultFactory extends AbstractFactory {
    @Override
    public Vehicle createVehicle() {
        return new Car();
    }

    @Override
    public Food createFood() {
        return new Apple();
    }

    @Override
    public Weapon createWeapon() {
        return new Ak47();
    }
}
